package com.zrf.hibernate.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * Buyer entity. @author MyEclipse Persistence Tools
 */

public class Buyer implements java.io.Serializable {

	// Fields

	private Integer buyerid;
	private String bname;
	private String bpassword;
	private Set banks = new HashSet(0);
	private Set shoppingcarts = new HashSet(0);
	private Set orders = new HashSet(0);

	// Constructors

	/** default constructor */
	public Buyer() {
	}

	/** minimal constructor */
	public Buyer(Integer buyerid) {
		this.buyerid = buyerid;
	}

	/** full constructor */
	public Buyer(Integer buyerid, String bname, String bpassword, Set banks,
			Set shoppingcarts, Set orders) {
		this.buyerid = buyerid;
		this.bname = bname;
		this.bpassword = bpassword;
		this.banks = banks;
		this.shoppingcarts = shoppingcarts;
		this.orders = orders;
	}

	// Property accessors

	public Integer getBuyerid() {
		return this.buyerid;
	}

	public void setBuyerid(Integer buyerid) {
		this.buyerid = buyerid;
	}

	public String getBname() {
		return this.bname;
	}

	public void setBname(String bname) {
		this.bname = bname;
	}

	public String getBpassword() {
		return this.bpassword;
	}

	public void setBpassword(String bpassword) {
		this.bpassword = bpassword;
	}

	public Set getBanks() {
		return this.banks;
	}

	public void setBanks(Set banks) {
		this.banks = banks;
	}

	public Set getShoppingcarts() {
		return this.shoppingcarts;
	}

	public void setShoppingcarts(Set shoppingcarts) {
		this.shoppingcarts = shoppingcarts;
	}

	public Set getOrders() {
		return this.orders;
	}

	public void setOrders(Set orders) {
		this.orders = orders;
	}

}